package com.example.campus.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ImageMapper {

    void insertBatch(Long infoId, List<String> imageUrls);

    @Delete("delete from image where info_id = #{infoId}")
    void deleteByInfoId(Long infoId);

    @Select("select image_url from image where info_id = #{infoId}")
    List<String> getUrlByInfoId(Long infoId);
}
